/*
 * CharNGramEst.java
 *
 * Created on November 8, 2007, 10:14 AM
 */

package Estimator.NGramChar;

import java.io.IOException;

/**
 * @author Martin Haulrich
 */
public interface CharNGramEst {
    
    /**
     * Get estimate for N-gram.
     * Result is logaritmic probability.
     * Returns log10(0) if the estimator only has up to N-grams and the input is a N+1-gram.
     * @param ngram N-gram to get estimate for.
     * @return Estimate as logaritmic probability.
     */
     public double getEstimate(String ngram);
     
    /**
     * The maximum N to get estimates for.
     * @return The maximum N of the N grams in this estimator.
     */
     public int getN();
     
      public void saveARPA(String filename) throws IOException;
}
